﻿using System;
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Shell;
using Red.Scripts.Options.Tool.Bar.Extensions;

namespace Red.Scripts.Options.Tool.Pane.FindSymbol
{
    [Export]
    public sealed class Command
    {
        #region Public Methods

        public void Initialize( OleMenuCommandService commandService )
        {
            commandService.InitializeButton( Defines.Toolbar.Guid, Defines.Toolbar.FindSymbolButtonId, ShowToolWindow );
        }

        #endregion Public Methods

        #region Private Methods

        private void ShowToolWindow( object sender, EventArgs e )
        {
            Utilities.Open< Window >();
        }

        #endregion Private Methods
    }
}
